package com.qdlc.p2p.biz.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.qdlc.p2p.biz.service.LotteryRecordService;
import com.qdlc.p2p.dal.common.model.jpa.PageDataList;
import com.qdlc.p2p.dal.dao.LotteryRecordDao;
import com.qdlc.p2p.dal.model.LotteryRecordModel;

@Service("lotteryRecordService")
public class LotteryRecordServiceImpl implements LotteryRecordService {

    @Resource
    private LotteryRecordDao lotteryRecordDao;

    @Override
    public List<LotteryRecordModel> getNewList(int category) {
        return lotteryRecordDao.getNewList(category);
    }

    @Override
    public PageDataList<LotteryRecordModel> list(LotteryRecordModel model) {
        return lotteryRecordDao.list(model);
    }
}
